<?php
/**
 * @package Freshine
 * @since Freshine 2.0.0
 */
 
/*-----------------------------------------------------------------------------------*/
/* Freshine Framework Version & Theme Version
/*-----------------------------------------------------------------------------------*/
function freshine_version_init() {

    $freshine_framework_version = '2.0.0';

    if ( get_option( 'freshine_framework_version' ) != $freshine_framework_version ) {
    	update_option( 'freshine_framework_version', $freshine_framework_version );
    }

}

add_action( 'init', 'freshine_version_init', 10 );

/*-----------------------------------------------------------------------------------*/
/* Load the required Framework Files
/*-----------------------------------------------------------------------------------*/
$functions_path = get_template_directory() . '/functions/';

require_once ( $functions_path . 'admin-functions.php' );				// Custom functions and plugins
require_once ( $functions_path . 'admin-options.php' );					// Options panel variables and functions
require_once ( $functions_path . 'admin-slide-options.php' );			// Options panel variables and functions
require_once ( $functions_path . 'admin-backup.php' );					// Theme Options Backup
?>